<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市中凯信息科技有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 角色管理</div>
	<div class="mainbody">
		<div class="operate_info">
			操作说明：
			<font color="#FF0000"><label id="explaininfo">&nbsp;</label></font>
		</div>
		<div class="table" style="text-align: center;">
			<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_list">
				<tr>
					<th>菜单名称</th>
					<th>菜单的权限</th>
					<th>操作</th>
				</tr>
				<mytag:List table="Menu" name="menuList" >menuParent=0</mytag:List>
				<logic:iterate id="menu0" name="menuList">
		  			<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td><a href="${menu0.menuUrl}" target="main">${menu0.menuName}</a></td>
						<td>${menu0.actionKey }</td>
						<td>
							<input type="button" value="修改" class="system_button" onclick="location.href='${pageScope.basePath }system/config/menu_manage_modify.jsp?menu_id=${menu0.menuId}'" />
							<input type="button" value="删除" class="system_button" onclick="location.href='${pageScope.basePath }system/config/menu_manage_delete.jsp?&menu_id=${menu0.menuId}'"/>
						</td>
					</tr>
					<mytag:List table="Menu" name="menuList" >menuParent=${menu0.menuId}</mytag:List>
			    	<logic:iterate id="menu1" name="menuList">
						<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
							<td style="padding-left:20px;"><a href="${menu1.menuUrl}" target="main">┗${menu1.menuName}</a></td>
							<td>${menu1.actionKey }</td>
							<td>
								<input type="button" value="修改" class="system_button" onclick="location.href='${pageScope.basePath }system/config/menu_manage_modify.jsp?menu_id=${menu1.menuId}'" />
								<input type="button" value="删除" class="system_button" onclick="location.href='${pageScope.basePath }system/config/menu_manage_delete.jsp?&menu_id=${menu1.menuId}'"/>
							</td>
						</tr>
						<mytag:List table="Menu" name="menuList" >menuParent=${menu1.menuId}</mytag:List>
						<logic:iterate id="menu2" name="menuList">
							<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
								<td style="padding-left:40px;"><a href="${menu2.menuUrl}" target="main">┗${menu2.menuName}</a></td>
								<td>${menu2.actionKey }</td>
								<td>
									<input type="button" value="修改" class="system_button" onclick="location.href='${pageScope.basePath }system/config/menu_manage_modify.jsp?menu_id=${menu2.menuId}'" />
									<input type="button" value="删除" class="system_button" onclick="location.href='${pageScope.basePath }system/config/menu_manage_delete.jsp?&menu_id=${menu2.menuId}'"/>
								</td>
							</tr>
						</logic:iterate>
					</logic:iterate>
        		</logic:iterate>
        	</table>
         </div>
     </div>
</div>
</body>
</html>